home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
a_utils
/
_archvrs
/
unix
/
pkzip19
/
msdos
/
makefile.gcc
< prev
next >
Wrap
Makefile
|
1994-02-20
|
2KB
|
90 lines
# Makefile for Zip, ZipCloak, ZipNote and ZipSplit for
# djgcc 1.06
CRYPTO=
CLOAK=
CRFLAG=
# *** For encryption version, remove the # at the front of next 3 lines ***
#CRYPTO=crypt.o
#CLOAK=zipcloak.exe
#CRFLAG=-DCRYPT
# ------------- djgcc -------------
CFLAGS=-Wall -O2 -DNO_ASM $(CRFLAG)
UTILFLAGS=-DUTIL $(CFLAGS) -o
CC=gcc
LD=gcc
LDFLAGS=-s
# variables
OBJZ = zip.o zipfile.o zipup.o fileio.o util.o globals.o $(CRYPTO)
OBJU = zipfile_.o zipup_.o fileio_.o util_.o globals.o
OBJN = zipnote.o $(OBJU)
OBJC = zipcloak.o $(OBJU) crypt_.o
OBJS = zipsplit.o $(OBJU)
zips: zip zipnote zipsplit $(CLOAK)
zip.o: zip.h ziperr.h tailor.h revision.h zip.c
zipfile.o: zip.h ziperr.h tailor.h zipfile.c
zipup.o: zip.h ziperr.h tailor.h revision.h zipup.c
fileio.o: zip.h ziperr.h tailor.h fileio.c
util.o: zip.h ziperr.h tailor.h util.c
globals.o: zip.h ziperr.h tailor.h globals.c
deflate.o: zip.h ziperr.h tailor.h deflate.c
trees.o: zip.h ziperr.h tailor.h trees.c
bits.o: zip.h ziperr.h tailor.h bits.c
crypt.o: zip.h ziperr.h tailor.h crypt.c
zipcloak.o: zip.h ziperr.h tailor.h revision.h zipcloak.c
zipnote.o: zip.h ziperr.h tailor.h revision.h zipnote.c
zipsplit.o: zipsplit.c zip.h ziperr.h tailor.h revision.h
zipfile_.o: zipfile.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS) $@ zipfile.c
zipup_.o: zipup.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS) $@ zipup.c
fileio_.o: fileio.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS) $@ fileio.c
util_.o: util.c zip.h ziperr.h tailor.h
$(CC) -c $(UTILFLAGS) $@ fileio.c
crypt_.o: crypt.c zip.h
$(CC) -c $(UTILFLAGS) $@ crypt.c
zip: $(OBJZ) $(OBJI)
$(LD) $(LDFLAGS) $(OBJZ) $(OBJI) -o $@
aout2exe $@
del $@
zipcloak: $(OBJC)
$(LD) $(LDFLAGS) $(OBJC) -o $@
aout2exe $@
del $@
zipnote: $(OBJN)
$(LD) $(LDFLAGS) $(OBJN) -o $@
aout2exe $@
del $@
zipsplit: $(OBJS)
$(LD) $(LDFAGS) $(OBJS) -o $@
aout2exe $@
del $@